home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d13
/
pull217.arc
/
ADVANCED.DEF
next >
Wrap
Text File
|
1990-09-19
|
4KB
|
141 lines
MAXDEFS=3
' ADVANCED.DEF - Demonstrates the most advanced features of PullDown v2.15
' Heavily commented source courtesy of Sam Horton, MicroDynamics
' Last update Sept. 8, 1990
DEF
%Prompt Samples
'012345678901234567890
%Sample User-Defined Full Custom HELP Menu
HI=7
' This one is particularly slick... and useful.
' An entire tutorial/online reference could be defined using
' this system with these commands!
SCROLLBOX=SAMPLE.HLP,Sample Help
ABORT
' Returns to menu instead of exiting to execute TEMPPULL.BAT
' Syntax is SCROLLBOX=HelpFile,HeaderString
' Where: HelpFile is a valid DOS file containing only ASCII
' HeaderString is a unique header found in the help file,
' and the help is ended by ### ... see PULL215.DOC
'012345678901234567890
%Build Your Own Batch (Variable Handling Demo)
' NOTE: This is fundamentally different from v2.01
' with all standard batch facilities available. See documentation.
' In v2.17, not v2.15, the REQUIRED and NOTREQUIRED keywords are
' present..........
HI=6
OKBOX=You will now interactively build a unique batch file.
?Enter Drive as D: [Enter]=Default
?Enter Full CD\Path.. command: [Enter]=Default
REQUIRED
?Enter Program Execution Command (e.g. 123): [Required]
+echo off
+cls
+%1
+%2
+%3
+PULLDWN
'012345678901234567890
%Using SET PULLDWN=D:\PATH
HI=10
' You could literally have entire menu subsystems
' set up in separate directories this way!
' Commented out here so that it does not screw up during your
' demo run.
OKBOX=Examine ADVANCED.DEF to see why this might be done.
' Sample...
' +SET PULLDWN=C:\SECRET\MENUS
' PULLDWN
' You would then start from an entirely new set in that subdir.
SCROLLBOX=SAMPLE.HLP,Pop up Warning
ABORT
' The solo "-" on a %TitleLine defines an UNSELECTABLE bar.
%-
'012345678901234567890
%Sample Dialogs
' For you REAL power users, here they are all in one.
' NOTREQUIRED is the default status of input boxes.
HI=7
YORN=Are you sure you want to use this option?
REQUIRED
?Sample of Prompting for REQUIRED input:
NOTREQUIRED
?Sample of Prompting for Input that can be NUL (Nothing):
OKBOX=This option requires a password. [Esc]=Quit
SCROLLBOX=SAMPLE.HLP,Red Herring
PASS=YouCannotKnowThis
ABORT
' Password failures ABORT execution. Since you did not know
' that password, you never got to this option.
' Used ABORT as this is only a demo file.
%-
'012345678901234567890
%About PullDown
HI=0
SCROLLBOX=SAMPLE.HLP,About PullDown...
ABORT
DEF
% Nest Sample
%Return to Main Menu
OKBOX=You could have done this by mouse clicking on "PullDown"
@PULLDWN.DEF
' An @ command looks either 1) The directory PULLDWN1.EXE is
' started from, OR 2) The path defined by SET PULLDWN=PathName
' If not found, a dialog is popped telling you so, and you are
' prompted for a valid definition file.
%Circle back to this menu
@ADVANCED.DEF
%Enter WINDOWS menu
@WINDOWS.DEF
DEF
%Exit
%Return to the Main Menu
' NOTICE that this is *not* exactly the same string as above ^^
' if it was, then the FIRST occurence would be executed. This
' small limitation will disappear upon release of the compiler.
OKBOX=You could have done this by mouse clicking on "PullDown"
@PULLDWN.DEF
'012345678901234567890
%Exit to DOS
HI=1
YORN=Are you sure?
OKBOX=Thank you for evaluating PullDown! Enjoy!
+echo off
+cls
+echo Type PULLDWN [ENTER] to return to PullDown.
+echo.
' End of ADVANCED.DEF file.
' SLH 8/90
' Please consider supporting shareware! Thank you.